<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>客户下订单</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/res/layui/css/layui.css" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
    <script src="/res/layui/layui.js" charset="utf-8"></script>
    <script src="/res/js/addPrediction.js"></script>
    <script src="/res/js/tools.js"></script>
    <script src="/pages/authority/treeSelect.js"></script>
</head>
<body>
<span id="ok" style="display: none">更改出发地、目的地、货物重量请重新点击查看价格</span>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>客户下单</legend>
</fieldset>
<form class="layui-form" action="" lay-filter="example" >
    <input type="hidden" name="clientId" id="clientId"> <!-- 加一个隐藏的主键客户ID-->
    <input type="hidden" name="predictionId" id="predictionId"> <!-- 加一个隐藏的主键客户下单ID-->
    <input type="hidden" name="cargoId" id="cargoId"> <!-- 加一个隐藏的主键客户货物ID-->

    <div class="layui-form-item">
        <label class="layui-form-label">货物类型</label>
        <div class="layui-input-inline">
            <select name="cargoType" lay-filter="leix">
                <option value="">--请选择--</option>
                <option value="数码产品">数码产品</option>
                <option value="生活用品">生活用品</option>
            </select>
        </div>
        <div>
        <span>现支持1--30kg</span>
        <label class="layui-form-label">货物重量</label>
        <div class="layui-input-inline">
            <input type="text" name="cargoWeight" id="cargoWeight" lay-verify="clientTel" autocomplete="off" placeholder="请输入货物重量"
                   class="layui-input">
        </div>
    </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">出发地</label>
            <div class="layui-input-inline">
                <input type="text" name="predictionDeparture" id="predictionDeparture" readonly lay-filter="tree1" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">目的地</label>
            <div class="layui-input-inline">
                <input type="text" name="predictionBourn" id="predictionBourn" readonly lay-filter="tree2" class="layui-input">
            </div>
        </div>
        <button type="button" class="layui-btn layui-btn-warm" id="money">点击查看价格</button>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">下单价格</label>
        <div class="layui-input-inline">
            <input type="text" name="predictionMoney" readonly id="predictionMoney" lay-verify="predictionMoney" autocomplete="off" placeholder="请点击上方生成价格"
                   class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">取件人</label>
        <div class="layui-input-inline">
            <input type="text" name="predictionRecipient" readonly id="predictionRecipient" lay-verify="clientPwd" autocomplete="off" placeholder="请输入取件人"
                   class="layui-input">
            <input type="text" name="xinClientId" hidden id="xinClientId">
        </div>
        <label class="layui-form-label">业务类型</label>
        <div class="layui-input-inline">
            <select name="predictionBusiness" lay-filter="leix">
                <option value="">--请选择--</option>
                <option value="货到付款">货到付款</option>
                <option value="上门取件">上门取件</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">货物说明</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入内容" name="cargoExplain" class="layui-textarea"></textarea>
        </div>
    </div>
    <div class="layui-input-block">
        <button type="button" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
        <button type="button" class="layui-btn layui-btn-primary" id="close_btu">关闭</button>
    </div>
    </div>
</form>
</body>
</html>